<!-- Begin issues/search.tpl -->
<form method="post" action="?module=issues&action=search_results">
<input type="hidden" name="submit" value="true" />
{opentable}
{titlebar colspan=8 title=$lg->search_issues}



<tr>
<td class="sectiontableentry2" width="15%" align="right" valign="middle">{$lg->issue} </td>
<td class="sectiontableentry1" colspan="7" width="85%"><input type="text" size="5" name="issueid"/></td>
</tr>
<tr>
<td class="sectiontableentry2" width="15%" align="right" valign="middle">{$lg->search} {$lg->text}</td>
<td class="sectiontableentry1" colspan="7" width="85%"><input type="text" size="32" name="criteria" style="width: 99%;" /></td>
</tr>
{if $smarty.get.advanced eq "true"}
</table>


<table border="0" cellspacing="1" cellpadding="3" width="100%">

<tr>

<td class="sectiontableentry2" align="right" valign="top" width="5%">{$lg->groups}</td>
<td class="sectiontableentry1" valign="top" width="20%">
<select name="groups[]" size="7" multiple="multiple" style="width: 99%;">
{if is_array($ugroups)}
{foreach from=$ugroups item=gid}
<option value="{$gid}">{groupname id=$gid}</option>
{/foreach}
{/if}
</select>
</td>

<td class="sectiontableentry2" align="right" valign="top" width="5%"> {$lg->priority}</td>
<td class="sectiontableentry1" valign="top" width="20%">
<select name="severity[]" size="7" multiple="multiple" style="width: 99%;">
{if is_array($severities)}
{foreach from=$severities key=sev_id item=severity}
<option value="{$sev_id}">{$severity}</option>
{/foreach}
{/if}
</select>
</td>

<td class="sectiontableentry2" align="right" valign="top" width="5%">{$lg->status}</td>
<td class="sectiontableentry1" valign="top" width="20%">
<select name="status[]" size="7" multiple="multiple" style="width: 99%;">
{if is_array($statuses)}
{foreach from=$statuses key=sid item=status}
<option value="{$sid}">{$status}</option>
{/foreach}
{/if}
</select>
</td>

<td class="sectiontableentry2" align="right" valign="top" width="5%">{$lg->type}</td>
<td class="sectiontableentry1" valign="top" width="20%">
<select name="category[]" size="7" multiple="multiple" style="width: 99%;">
{if is_array($categories)}
{foreach from=$categories key=cid item=category}
<option value="{$cid}">{$category}</option>
{/foreach}
{/if}
</select>
</td>

</tr>



<tr>
<td class="sectiontableentry2" align="right" valign="top" width="5%">{$lg->product}</td>
<td class="sectiontableentry1" valign="top" width="15%">
<select name="product[]" size="7" multiple="multiple" style="width: 99%;">
{if is_array($products)}
{foreach from=$products key=pid item=product}
<option value="{$pid}">{$product}</option>
{/foreach}
{/if}
</select>
</td>

<td class="sectiontableentry2" align="right" valign="top" width="5%">{$lg->opened_by}</td>
<td class="sectiontableentry1" valign="top" width="15%">
<select name="opened[]" size="7" multiple="multiple" style="width: 99%;">
{if is_array($users)}
{foreach from=$users key=userid item=username}
<option value="{$userid}">{$username}</option>
{/foreach}
{/if}
</select>
</td>
<td class="sectiontableentry2" align="right" valign="top" width="5%">{$lg->assigned_to}</td>
<td class="sectiontableentry1" valign="top" width="15%">
<select name="assigned[]" size="7" multiple="multiple" style="width: 99%;">
{if is_array($users)}
{foreach from=$users key=userid item=username}
<option value="{$userid}">{$username}</option>
{/foreach}
{/if}
</select>
</td>
</tr>

{/if}
<tr class="titlebar"><td colspan="8"><input type="submit" class="button" value={$lg->search} /></td></tr>
</table>
</form>
</table>
<!-- End issues/search.tpl -->

